$OpenBSD: patch-libjava_configure_host,v 1.1.1.1 2014/06/26 16:30:17 pascal Exp $
--- libjava/configure.host.orig	Tue Apr 16 10:49:51 2013
+++ libjava/configure.host	Mon Dec  2 12:20:03 2013
@@ -336,6 +336,12 @@ EOF
   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
 	can_unwind_signal=yes
 	;;
+  *-*-openbsd*)
+	enable_hash_synchronization_default=no
+	libgcj_flags="${libgcj_flags} -fno-omit-frame-pointer"
+	can_unwind_signal=no
+	slow_pthread_self=no
+	;;
   *-*-freebsd*)
 	slow_pthread_self=
 	;;
